var o = getApp();

Page({
    data: {
        server: o.server,
        serverUrl: "http://www.ylhzzy.top:8828/public",
        imginfo: "",
        id: null
    },
    onLoad: function(o) {
        console.log(o.id);
        this.setData({
            inited: !0,
            id: o.id
        });
         this.loadPrd(o.id);
         wx.setNavigationBarTitle({
            title: "详情"
        });
    },
    loadPrd: function(t) {
        var n = this;
        o.request({
            url: o.rserver + "/productApi/getProductInfo",
            method: "POST",
            data: {
                id: t
            },
            header: {
                "content-type": "application/x-www-form-urlencoded"
            },
            success: function(t) 
            {
                n.setData({
                    imginfo: t.data.result.product.info[0].pic
                });
                 n.imginfo = t.data.result.product.info[0].pic;
                  console.log("that.imginfo", o.server + n.imginfo);
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});